package org.dromara.hotel.domain.vo;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.dromara.hotel.domain.TerPricingRule;
import cn.idev.excel.annotation.ExcelIgnoreUnannotated;
import cn.idev.excel.annotation.ExcelProperty;
import org.dromara.common.excel.annotation.ExcelDictFormat;
import org.dromara.common.excel.convert.ExcelDictConvert;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;

import java.io.Serial;
import java.io.Serializable;
import java.util.Date;



/**
 * 酒店价格规则视图对象 ter_pricing_rule
 *
 * @author xch
 * @date 2025-06-10
 */
@Data
@ExcelIgnoreUnannotated
@AutoMapper(target = TerPricingRule.class)
public class TerPricingRuleVo implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    /**
     *
     */
    @ExcelProperty(value = "")
    private Long id;

    /**
     *
     */
    @ExcelProperty(value = "")
    private Long roomId;

    /**
     * 规则类型
     */
    @ExcelProperty(value = "规则类型", converter = ExcelDictConvert.class)
    @ExcelDictFormat(dictType = "ter_rule_type")
    private String ruleType;

    /**
     * 规则生效开始日期
     */
    @ExcelProperty(value = "规则生效开始日期")
    private Date startDate;

    /**
     * 规则生效结束日期
     */
    @ExcelProperty(value = "规则生效结束日期")
    private Date endDate;

    /**
     * 条件表达式
     */
    @ExcelProperty(value = "条件表达式")
    private String conditionJson;

    /**
     * 计算公式
     */
    @ExcelProperty(value = "计算公式")
    private String formula;

    /**
     * 优先级
     */
    @ExcelProperty(value = "优先级")
    private Long priority;

    /**
     * 是否有效
     */
    @ExcelProperty(value = "是否有效")
    private Long isActive;

    private Long hotelId;
    private String hotelName;
    private String roomType;
}
